const crypto/internal/nistec.p521ElementLength
18 uses
crypto/internal/nistec (current package)
p521.go#L18: const p521ElementLength = 66
p521.go#L63: case len(b) == 1+2*p521ElementLength && b[0] == 4:
p521.go#L64: x, err := new(fiat.P521Element).SetBytes(b[1 : 1+p521ElementLength])
p521.go#L68: y, err := new(fiat.P521Element).SetBytes(b[1+p521ElementLength:])
p521.go#L81: case len(b) == 1+p521ElementLength && (b[0] == 2 || b[0] == 3):
p521.go#L97: cond := y.Bytes()[p521ElementLength-1]&1 ^ b[0]&1
p521.go#L148: var out [1 + 2*p521ElementLength]byte
p521.go#L152: func (p *P521Point) bytes(out *[1 + 2*p521ElementLength]byte) []byte {
p521.go#L172: var out [p521ElementLength]byte
p521.go#L176: func (p *P521Point) bytesX(out *[p521ElementLength]byte) ([]byte, error) {
p521.go#L193: var out [1 + p521ElementLength]byte
p521.go#L197: func (p *P521Point) bytesCompressed(out *[1 + p521ElementLength]byte) []byte {
p521.go#L209: buf[0] |= y.Bytes()[p521ElementLength-1] & 1
p521.go#L386: var p521GeneratorTable *[p521ElementLength * 2]p521Table
p521.go#L392: func (p *P521Point) generatorTable() *[p521ElementLength * 2]p521Table {
p521.go#L394: p521GeneratorTable = new([p521ElementLength * 2]p521Table)
p521.go#L396: for i := 0; i < p521ElementLength*2; i++ {
p521.go#L413: if len(scalar) != p521ElementLength {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |